export function secondsToMMSS(seconds: number): string {
  // 确保秒数为非负数
  const totalSeconds = Math.max(0, Math.floor(seconds));

  // 计算分钟和秒
  const minutes = Math.floor(totalSeconds / 60);
  const remainingSeconds = totalSeconds % 60;

  // 格式化为两位数
  const formattedMinutes = minutes.toString().padStart(2, '0');
  const formattedSeconds = remainingSeconds.toString().padStart(2, '0');

  return `${formattedMinutes}:${formattedSeconds}`;
}